package com.wlzg.collectiontool.view

import android.content.Context
import androidx.recyclerview.widget.GridLayoutManager
import com.lxj.xpopup.core.CenterPopupView
import com.wlzg.collectiontool.R
import com.wlzg.collectiontool.adapter.WeiJianceAdapter
import kotlinx.android.synthetic.main.dia_weijiance.view.*

class WeijianceDia(context:Context) : CenterPopupView(context){
    private var mAdapter=WeiJianceAdapter()
    override fun getImplLayoutId(): Int {
        return R.layout.pro_list_dia
    }

    override fun onCreate() {
        super.onCreate()
       recyclerView.layoutManager=GridLayoutManager(context,5)
        recyclerView.adapter=mAdapter
        mAdapter.setNewData(arrayListOf("1","2","3") as ArrayList<String?>?)
    }
}